php for loop array

44

php array loop -

for ($i = 0; $i < count($array); $i++) {
    echo $array[$i]['filename'];
    echo $array[$i]['filepath'];
}

php for loop array -

$CodeWallTutorialArray = ["Eggs", "Bacon", "HashBrowns", "Beans", "Bread", "RedSauce"];

        for ($i = 0; $i < count($CodeWallTutorialArray); $i++)  {
            echo $CodeWallTutorialArray[$i] ."<br />";
        }Copy

Comments

Submit
0 Comments